import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;

import org.json.JSONObject;


public class testmain {

	public static void main(String[] args) {
		try {
			URL url = new URL("https://euw.api.pvp.net/api/lol/euw/v1.4/summoner/by-name/Ask%C3%ACr?api_key=15275385-a91f-476a-a68c-94632e0122a6");
			InputStreamReader isr = new InputStreamReader(url.openStream());
			BufferedReader br = new BufferedReader(isr);
			JSONObject jsono  = new JSONObject(br.readLine());
			JSONObject jsono2 = jsono.getJSONObject("askìr");
			System.out.println(jsono2.getInt("id"));
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		

	}

}
